﻿package mortal.game.view.ThanksGiving.item
{
    import flash.events.*;
    import mortal.game.events.*;
    import mortal.game.resource.*;
    import mortal.game.view.ThanksGiving.data.*;
    import mortal.game.view.common.*;
    import mortal.mvc.core.*;

    public class ThanksGivingIcon extends ActionBaseIcon
    {
        private static var _instance:ThanksGivingIcon;

        public function ThanksGivingIcon()
        {
            super(ResFileConst.ThanksGivingIcon);
            return;
        }// end function

        override protected function clickHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(ThanksGivingEvent.ThanksGiOpenM));
            return;
        }// end function

        public static function get instance() : ThanksGivingIcon
        {
            if (!_instance)
            {
                _instance = new ThanksGivingIcon;
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
